Reverse Bits | Leetcode Python Solution | Python